LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := hellocpp_shared

LOCAL_MODULE_FILENAME := libhellocpp

LOCAL_SRC_FILES := hellocpp/main.cpp \
					hellocpp/CallCppFunc.cpp \
                   ../../Classes/AppDelegate.cpp \
                   ../../Classes/EditScene.cpp \
                   ../../Classes/LevelScene.cpp \
                   ../../Classes/SelectScene.cpp \
                   ../../Classes/UserLevelView.cpp \
                   ../../Classes/UserLevelLayer.cpp \
                   ../../Classes/StartScene.cpp \
                   ../../Classes/EndScene.cpp \
                   ../../Classes/ActionExt.cpp \
                   ../../Classes/CC2DFileCache.cpp \
                   ../../Classes/CC2DNodeFile.cpp \
                   ../../Classes/CCATFileCache.cpp \
                   ../../Classes/Misc.cpp \
                   ../../Classes/SysApiManager_Android.cpp \
                   ../../Classes/AccountManager_Android.cpp \
                   ../../Classes/PayManager_Android.cpp \
                   ../../Classes/ZLibLevel.cpp \
                   ../../Classes/AccountManager.cpp \
                   ../../Classes/SpriteExt.cpp \
                   ../../Classes/XmlParser.cpp \
                   ../../Classes/GUI/UIButton.cpp \
                   ../../Classes/GUI/UIWidget.cpp \
                   ../../Classes/Signature/base64.cpp \
                   ../../Classes/Signature/BCSManager.cpp \
                   ../../Classes/Signature/sha1.cpp \
                   ../../Classes/Signature/hmac_sha1.cpp \
                   ../../Classes/Signature/urlcode.cpp
                   

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes \
					$(LOCAL_PATH)/../../Classes/GUI \
					$(LOCAL_PATH)/../../Classes/Signature \
					$(LOCAL_PATH)/../../../../libiconv \
					$(LOCAL_PATH)/../../../../libiconv/include
   
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static
LOCAL_WHOLE_STATIC_LIBRARIES += box2d_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_static
LOCAL_WHOLE_STATIC_LIBRARIES += libiconv

include $(BUILD_SHARED_LIBRARY)

$(call import-module,cocos2dx)
$(call import-module,cocos2dx/platform/third_party/android/prebuilt/libcurl)
$(call import-module,libiconv)
$(call import-module,CocosDenshion/android)
$(call import-module,extensions)
$(call import-module,external/Box2D)

